package com.kfm.shop.service.impl;

import com.kfm.shop.domain.Product;
import com.kfm.shop.service.ProductService;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product findByPid(Integer pid) {
        // TODO 数据库 查询数据
        Product product = new Product();
        product.setId(1);
        product.setName("华为手机");
        product.setStock(100);
        product.setPrice(1000.00);
        product.setDescription("遥遥领先的智能手机");
        return product;
    }
}
